using Microsoft.EntityFrameworkCore;
using ApiTest.Api.Entity;
namespace ApiTest.Api.Db
{
    public class ApiTestDb : DbContext
    {

        public ApiTestDb(DbContextOptions<ApiTestDb> db) : base(db)
        {

        }
        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<UserRoles> UserRoles { get; set; }
        public DbSet<AuditInfo> AuditInfo { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder options)
        {
            options.UseSqlServer(@"server=.;database=ApiTest;uid=sa;pwd=123456;");
        }
    }
}